var TeaList = [];

TeaList.push({type:"Black Tea", amount:"1 cup", strength:"normal", mins: 5, secs: 0});
TeaList.push({type:"Green Tea", amount:"1 cup", strength:"normal", mins: 3, secs: 0});
TeaList.push({type:"Gunpowder", amount:"1 cup", strength:"normal", mins: 1, secs: 0});

var myMenuAttr;
var myMenuModel;

myMenuAttr = {omitDefaultItems: true};
myMenuModel = {
visible: true,
items: [
	{label: "Prefences...", command: 'do-prefs'}
]
};


function StageAssistant() {
}

StageAssistant.prototype.setup = function() {
	this.controller.pushScene('tea-picker', TeaList);
}

StageAssistant.prototype.handleCommand = function(event) {	
	if(event.type == Mojo.Event.command) {
		switch(event.command) {
			case 'thisisatest':
				Mojo.Controller.stageController.pushScene("tea-minder");
				break;
			case 'do-prefs':
				Mojo.Controller.stageController.pushScene("preferences");
				break;
		}
	}
};


